/**
 * 
 */
package com.coral.fundation.user;

import java.util.List;

import com.coral.fundation.user.entity.Menu;
import com.coral.fundation.user.entity.Role;
import com.coral.fundation.user.entity.User;

/**
 * @author Coral
 *
 */
public interface IUserManagement {

	public User saveUser(User user) throws Exception;
	
	public void deleteUser(User user) throws Exception;
	
	public Role createRole(Role role) throws Exception;
	
	public void deleteRole(Role role) throws Exception;

	public void provideRoleToUser(Role role, User user) throws Exception;
	
	public void removeRoleFromUser(Role role, User user) throws Exception;
	
	public void setRolePermission(List<Menu> menus, Role role) throws Exception;
}
